package com.plant.consult.mapper;

import com.plant.consult.domain.Consult;
import com.plant.consult.domain.ConsultDetail;
import com.plant.consult.domain.ConsultDetailDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ConsultDetailMapper {

    void insert(ConsultDetail consultDetail);

    List<ConsultDetail> findConId(Integer id);
    @Insert("insert into consult_detail value(null,#{recordId},#{coupon},#{supers},#{createTime},#{del})")
    void replyAdd(ConsultDetail consultDetail);

    Integer selectInsert(ConsultDetail consultDetail);
    @Insert("insert into consult_detail_img value(null,#{detailId},#{url})")
    void insertImg(ConsultDetailDto consultDetailDto);
}
